<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * index.php
 * @author ranuandra
 *
 * 30 Apr 2012 22:46:45
 *
 * 
 */
?>
    <header class="" id="overview">
      <div class="page-header">
          <h1><?php echo $data->deskripsi ?></h1>
      </div>
    </header>
     <div class="row">
    	<div class="span8">
    	<h2>Deskripsi</h2>
 		<dl class="dl-horizontal">
 			<dt>Area Of Work</dt>
 			<dd><?php echo $data->mstareaofwork->areaofwork ?></dd>
 			<dt>Pendidikan</dt>
 			<dd><?php echo $data->mstpendidikan->pendidikan ?></dd>
 			<dt>Ditutup Tanggal</dt>
 			<dd><?php echo date("d-m-Y", strtotime( $data->dateto ) ) ?></dd>
 		</dl>
     
			<h2>Syarat Umum</h2>
			<?php echo $data->kualifikasi_umum ?>
			<h2>Syarat Khusus</h2>
			<ul class="syarat">
			<?php echo $data->kualifikasi_khusus ?>
            </ul>
            <div class="apply-bar">
            <?php 
            if(Auth_ORM::instance()->logged_in())
            {

            	if($next == true && $cek_data == true)
            	{
            ?>
			<a href="<?php echo URL::base() ?>lowongan/confirm/<?php echo $data->id?>" class="btn btn-success btn-large">
        		<i class="icon-user icon-white"></i> Ajukan Lamaran
        	</a>
            	
			<?php 
            	} 
            	elseif($next == false && $cek_data == true) {
					echo $message;
            	}
            	elseif($cek_data == false)
            	{
            ?>
	 			<a href="<?php echo URL::base() ?>user" class="btn btn-danger btn-large">
	        		<i class="icon-user icon-white"></i> Lengkapi Data
	        	</a>  
        	<?php          		
            	}

            } else 
            {
            ?>
           	<a href="<?php echo URL::base() ?>home/login" class="btn btn-success btn-large">
        		<i class="icon-lock icon-white"></i> Member Login
        	</a> 
        	<a href="<?php echo URL::base() ?>home/register" class="btn btn-success btn-large">
        		<i class="icon-user icon-white"></i> Registrasi Gratis
        	</a>
            <?php 
            }
            ?>
            </div>
    	</div>
    </div>
